//
//  EGORefreshLandscapeHeaderView.h
//  Growth
//
//  Created by Hobo.Chen on 1/10/12.
//  Copyright 2012 MEETStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

#import "EGORefreshUnitView.h"

@protocol EGORefreshLandscapeHeaderDelegate;
@interface EGORefreshLandscapeHeaderView : EGORefreshUnitView{
	
	id _delegate;
	EGOPullRefreshState _state;
	
	UILabel *_lastUpdatedLabel;
	UILabel *_statusLabel;
	CALayer *_arrowImage;
	UIActivityIndicatorView *_activityView;
	
}

@property(nonatomic,assign) id <EGORefreshLandscapeHeaderDelegate> delegate;

- (void)refreshLastUpdatedDate;
- (void)egoRefreshScrollViewDidScroll:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDidEndDragging:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView;

@end

@protocol EGORefreshLandscapeHeaderDelegate
- (void)egoRefreshTableHeaderDidTriggerRefresh:(EGORefreshLandscapeHeaderView*)view;
- (BOOL)egoRefreshTableHeaderDataSourceIsLoading:(EGORefreshLandscapeHeaderView*)view;
@optional
- (NSDate*)egoRefreshTableHeaderDataSourceLastUpdated:(EGORefreshLandscapeHeaderView*)view;
@end